package com.nyc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 注解 + 配置文件的方式
 * @author niuyicong
 * @date 2025/8/24  22:12:03
 * @description
 */
public class StartApp {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        System.out.println("context.getBean(\"userService\") === " + context.getBean("userService"));
    }
}

